package com.lei.zjs.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 日期时间转换工具类
 * @author Spinacia
 *
 */
public class DateUtils {
	
	//将日期格式数据转换为字符串
	public static String date2String(Date date,String pattern) {
		SimpleDateFormat sdf = new SimpleDateFormat(pattern);
		return sdf.format(date);
	}
}
